home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0254.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  1.9 KB  |  58 lines

  1.  
  2.  
  3.  
  4.                ??????????????????????????????????????????????
  5.                ??  Petri Hakkinen       |   A1200/2M/210M  ??
  6.                ??  mystic@tlti.tokem.fi |   C64/64k        ??
  7.                ??????????????????????????????????????????????
  8.  
  9. On Sat, 25 Feb 1995, Andy Church wrote:
  10.  
  11. > >I tried to unpack some xpk packed files under Amos Pro with xpk commands
  12. > >of Easylife extension. Unpacking works fine but there are problems with the
  13. > >Amos editor after.
  14. > >
  15. > >EX.
  16. > >This is a simple example of what i did.
  17. > >
  18. > >Elxpk Load "df1:songs/module.med","HUFF" to 1
  19. > >Med Play 1
  20. >   Well, there's your problem!  You have to use "Med Load" to load a MED
  21. > module, because the MED format requires some relocations to be done.  (In
  22. > other words, there are some pointers in the module that have to be changed
  23. > depending on where in memory the module is loaded.)  Also, MED modules have
  24. > to be loaded to chip memory, which the normal Load command (and Elxpk Load
  25. > as well) don't to.  What you can do instead is:
  26. > Elxpk Load "df1:songs/module.med","HUFF" To 1
  27. > Bsave "T:module.temp",Start(1) To Start(1)+Length(1)
  28. > Erase 1
  29. > Med Load "T:module.temp",1
  30. > Kill "T:module.temp"
  31. > Med Play 1
  32. > which is slightly more roundabout but works correctly. :)
  33.  
  34. A better way would be to call RelocModule() in the medplayer.library...
  35. I have an example how to do this written in Amos, in the case somebody 
  36. wants it. (with it you can even save medmodules with an amos program)
  37.  
  38. -Pete
  39.  
  40.  
  41.  
  42. > >I had the same problem also with an amos packed picture.
  43. >   Again, the packed picture bank format has some pointers that have to be
  44. > relocated, at least according to the AMOS Pro manual.  Do something like
  45. > the above code, but use "Load" instead of "Med Load".
  46. >   --Andy Church (achurch@goober.mbhs.edu)
  47. >     WWW: http://www.mbhs.edu/~achurch/
  48. >     AMOS Web Site: http://www.mbhs.edu/~achurch/amos/
  49.  
  50.  
  51.